package org.formal.business.entity;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.formal.common.base.BaseEntity;
import javax.persistence.Column;
import javax.persistence.Table;

/**
 * 会员课程交易详情表实体类
 *
 * @author jiangyan
 * @since 2020-05-16
 */
@Data
@Table(name = "t_member_course_detail")
@EqualsAndHashCode(callSuper = true)
public class MemberCourseDetailEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 会员课程编号
     */
    @Column(name="MC_ID")
    private String mcId;
    /**
     * 续费类型
     */
    @Column(name="TRANSACTION_TYPE")
    private String transactionType;
    /**
     * 续费课程数量
     */
    @Column(name="COURSES_NUM")
    private String coursesNum;
    /**
     * 交易渠道 0：微信，1支付宝，2转账，3其他
     */
    @Column(name="TRANSACTION_SOURCE")
    private String transactionSource;
    /**
     * 账单号
     */
    @Column(name="TRANSACTION_NUM")
    private String transactionNum;
    /**
     * 金额实收
     */
    @Column(name="ACTUAL_MONEY")
    private BigDecimal actualMoney;
    /**
     * 备注
     */
    @Column(name="REMARK")
    private String remark;
    /**
     * 生效日期时间
     */
    @Column(name="EFFECTIVE_TS")
    private LocalDateTime effectiveTs;

}
